Skip to main content
Version: 4.3.x {testing}

Hardware-specific configuration tools

canflt [-e] [-d] [-t<filterType>] [-c<filterConfiguration>] [filterNumber] [id1] ... [idN])

Assign a low-level receive filter to a CAN interface. The filters work in pass mode. Therefore, all messages are rejected by default, unless they do a match with any of the filters. Prior to filter 0 assignment, all messages are accepted (unless redefined by a specific customer's application). The assigned filters will live until the device is reset. Therefore, if you wish to configure a device permanently, the configuration has to be part of an internal script.

Return value

Negative values for errors, 0 when success.

Options (stm32f3xxx)

  • -e - extended ID mode for this filter
  • -d - disable this filter
  • -t - optional filter type (0: mask; 1: list);
  • -c - optional filter configuration (0: fifo0; 1: fifo1);

Examples (stm32f3xxx)

canflt 0 0b00000000000 0b11110000000   #set filter 0 to mask mode, accept siliXcon service API protocol (all messages with ID lower than 256 - 4 MSB bits must be 0)
canflt -e -t1 0 0xC27F05A 0x185CF05A #set filter 1 to lsit mode, accept two messages with exetended ID 0xC27F05A 0x185CF05A
canflt -e -t1 2 0x185DF05A 0x18DAF0F9 #set filter 2 to lsit mode, accept two messages with exetended ID 0x185DF05A 0x18DAF0F9

btc [a/c] [argument0] ... [argumentN]

Perform a command on the Bluetooth HCI hardware. If no command is specified, the command returns current state of the bluetooth radio.

Commands

  • a - print out the local BD address.
  • c - connect to a remote radio with address defined argument0.